<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>增加用户</title>
<link href="admin/css/adminstyle.css" rel="stylesheet" type="text/css">
<SCRIPT lanuage="JScript">
<!--
function tempturnit(ss)
{
 if (ss.style.display=="") 
  ss.style.display="none";
 else
  ss.style.display=""; 
}
-->
</SCRIPT>
<script>
function ReTempBak(){
	self.location.reload();
}
</script>
</head>

<body>


  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <form  method="post" ><input name="id" type="hidden" value="<?=$_GET['id']?>">
    <tr class="header"> 
      <td height="25" colspan="2">增加栏目        </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="19%" height="25">栏目名称</td>
      <td width="81%" height="25"> <input name="title" type="text"  value="<?=$title?>"> 
      </td>
    </tr>
      
       <tr bgcolor="#FFFFFF"> 
      <td width="19%" height="25">所属父栏目</td>
      <td width="81%" height="25">
    
      <select name="father_id" size="12"  id="select">
         <option value="0"  <?
         if ($father_id==0){
		 	echo "selected";
		 }
		 ?>  >根栏目</option>
        <?
        function  classInfo ($data,$leve=0,$tmp,$father_id)
		{
			if (!empty($data))
			{
				if ($leve>0)
				{
					$tmp="&nbsp;&nbsp;".$tmp;
				}
				$leve++;
				
				foreach ($data as $v)
				{
					?>
        <option value="<?=$v['id']?>"   <?
 
		 if ($father_id == $v['id']){
		 	echo "selected";
		 }
		?>   ><? echo $tmp."|-".$v['title']; ?></option>
					<?
                    classInfo($v['next'],$leve,$tmp,$father_id);
				}
				
			}
		}
		classInfo($class,0,"",$father_id);
		?>
        
        
          
        
      </select></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="25">&nbsp;</td>
      <td height="25"><input type="submit" name="submit" value="提交"> <input type="reset" name="Submit2" value="重置">
              </td>
    </tr>
	</form>

  </table>
</body>
</html>
